﻿@model WebSite.Web.Models.AdminUserVM
@{
    ViewBag.Title = "ChangePassword";
    Layout = "~/Views/Shared/_ViewFormPage.cshtml";
}
@section head
    {
    <style type="text/css">
        td
        {
            height: 30px;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("form").makeValidationInline();
            $("#btnSave").click(function (event) {
                if (!$("#fm").valid()) {
                    return false;
                }
                $("form").submit();
            });


        })
    </script>
}
@using (Html.BeginForm("ChangePassword", "Home", FormMethod.Post, new { id = "fm" }))
{
   
    @Html.HiddenFor(m => m.UserId)
    <div id="header" class="header">
        <h4>密码修改</h4>
    </div>
    <div id="detail_forms">
        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                旧密码：
            </div>
            <div class="formItem textItem">
                @Html.PasswordFor(model => model.Password, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>

        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                新密码:
            </div>
            <div class="formItem textItem">
                @Html.PasswordFor(model => model.NewPass, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>

        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                再次输入新密码:
            </div>
            <div class="formItem textItem">
                @Html.PasswordFor(model => model.AgainPass, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>



        <div id="btnContainer" class="formsItems">
            <div class="formItem labelItem">
                &nbsp;
            </div>
            <div class="formItem textItem">

                <a href="javascript:void(0);" id="btnSave">确认修改</a>
                @*  <a href="Index" id="btnCancel">取消</a>*@
            </div>
            <div class="formItem">
                <span id="disMess">@Html.Raw(ViewBag.ErrorMessage)</span>
            </div>
        </div>
        <div class="formsItems"></div>
    </div>
    
    
   
    
}